package com.huaxin.device.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huaxin.device.models.EquipmentModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EquipmentModelMapper extends BaseMapper<EquipmentModel> {
    @Select("SELECT COUNT(*) > 0 FROM equipment_model WHERE category_id = #{categoryId}")
    boolean existsByCategoryId(String categoryId);
}